package com.kaili.common.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.kaili.common.dto.PageDto;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 部门表
 */
public class BaseDepartment extends PageDto {

    @Excel(name= "部门编号",orderNum = "4")
    private Long id;
    @ApiModelProperty("部门名称")
    @Excel(name= "部门名称",orderNum = "1")
    private String name;
    @ApiModelProperty("上级部门ID")
    private Long parentId;
    private String depPath;
    private boolean enabled;
    private boolean isParent;
    @Excel(name= "上级部门",orderNum = "2")
    private String parentName;
    private String remark;
    private Integer createBy;
    @Excel(name= "创建时间",orderNum = "3",format = "yyyy-MM-dd")
    private Date createTime;
    private Integer modifyBy;
    private Date modifyTime;

    private Integer result;
    private List<BaseDepartment> children = new ArrayList<>();


    public Integer getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(Integer modifyBy) {
        this.modifyBy = modifyBy;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<BaseDepartment> getChildren() {
        return children;
    }

    public void setChildren(List<BaseDepartment> children) {
        this.children = children;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDepPath() {
        return depPath;
    }

    public void setDepPath(String depPath) {
        this.depPath = depPath;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isParent() {
        return isParent;
    }

    public void setParent(boolean parent) {
        isParent = parent;
    }
}
